package com.dennytech.tac.ui.dialogfragment;

import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

import com.dennytech.tac.widget.LocalImageView;
import com.dennytech.tac.R;

public class AddPhotoRecordDialog extends DialogFragment {

	String photoPath;
	
	EditText intro;
	Button ok;

	public AddPhotoRecordDialog(String path) {
		photoPath = path;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.dialog_add_photo_record, container);
		LocalImageView liv = (LocalImageView) view.findViewById(R.id.photo);
		liv.setImage(photoPath);
		
		intro = (EditText) view.findViewById(R.id.intro);
		
		ok = (Button) view.findViewById(R.id.ok);
		
		return view;
	}

	@Override
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);

	}
	
	public interface AddPhotoRecordListener {
        void onFinishAddPhotoRecord();
    }

}
